//
//  Rank_GiftListSortView.m
//  YLProject
//
//  Created by 张伯林 on 2018/2/6.
//  Copyright © 2018年 WY. All rights reserved.
//

#import "Rank_GiftListSortView.h"

@implementation Rank_GiftListSortView

+(instancetype)popViewBlock:(void (^)(NSString *))block{
    Rank_GiftListSortView *popView = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(Rank_GiftListSortView.class) owner:nil options:nil] firstObject];
    popView.block = block;
    return popView;
}
- (IBAction)integralGiftClick:(UIButton *)sender {
    if (self.block) {
        self.block(@"integralGift");
    }
}
- (IBAction)giftTimeClick:(id)sender {
    if (self.block) {
        self.block(@"giftTime");
    }
}
-(void)changeTitle:(NSString *)oneString twoString:(NSString *)twoString{
    [self.oneButton setTitle:oneString forState:UIControlStateNormal];
    [self.twoButton setTitle:twoString forState:UIControlStateNormal];
}
@end
